﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Filters;
namespace ValueProviderTest.App_Start
{
    public class Error:HandleErrorAttribute
    {
        public override void OnException(ExceptionContext filterContext)
        {
            //ContentResult content = new ContentResult();
            // content.Content = "error";
            // filterContext.Result = content;
            RedirectResult result = new RedirectResult("http://www.baidu.com");
            filterContext.Result = result;
            //base.OnException(filterContext);
        }
    }
}